/**
 * Weight
 * This class represents a patient's recorded Weight (in pounds)
 * Subclass of Vitals
 */
package docoffice.doss;
import java.util.logging.Logger;
/**
 * @author George Chi
 * @version  $Revision: 1.8 $
 */
public class Weight extends Vitals {
	
	/**
	 * Field poundKiloConstant.
	 */
	public static final double PKCONSTANT = 0.45359237; // pound to kilo conversion constant
	
	/**
	 * Field weightPounds.
	 */
	public double weightPounds;

	/**
	 * Field weightKilograms.
	 */
	public double weightKilograms;
	
	/**
	 * Field LOG.
	 */
	private static final Logger LOG = Logger.getLogger("Vitals.Weight");

	/**
	 * Constructor for Weight.
	 * @param patientPulse int
	 * @param patientWeightPounds double
	 */
	public Weight(int patientPulse, double patientWeightPounds) {
		super(patientPulse);
		this.weightPounds = patientWeightPounds;
	}
	
	/**
	 * Method convertToKilograms.
	 * @param pounds double
	
	 * @return double */
	public double convertToKilograms(double pounds) {
		LOG.entering("Weight", "convertToKilograms");
		// 1 pound = 0.45359237 kilograms
		final double tempPounds = pounds;
		weightKilograms = (tempPounds  *  PKCONSTANT);
		LOG.exiting("Weight", "convertToKilograms");
		return weightKilograms ;
		
	}
	
	/**
	 * Method getWeightPounds.
	
	 * @return double */
	public double getWeightPounds() {
		LOG.entering("Weight", "getWeightPounds");
		LOG.exiting("Weight", "getWeightPounds");
		return weightPounds;
	}

	/**
	 * Method setWeightPounds.
	 * @param weightPounds double
	 */
	public final void setWeightPounds(double weightPounds) {
		LOG.entering("Weight", "setWeightPounds");
		this.weightPounds = weightPounds;
		LOG.exiting("Weight", "setWeightPounds");
	}

	/**
	 * Method getWeightKilograms.
	
	 * @return double */
	public double getWeightKilograms() {
		LOG.entering("Weight", "getWeightKilograms");
		LOG.exiting("Weight", "getWeightKilograms");
		return weightKilograms;
	}

	/**
	 * Method setWeightKilograms.
	 * @param weightKilograms double
	 */
	public final void setWeightKilograms(double weightKilograms) {
		LOG.entering("Weight", "getWeightKilograms");
		this.weightKilograms = weightKilograms;
		LOG.exiting("Weight", "getWeightKilograms");
	}
	
}
